<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<div id="menu" style="margin-top:5px;">
<c:forEach items="${__menu.menuItems}" var="menuItem">
<c:choose>
	<c:when test="${menuItem.id eq userSession.selectedMenuItem.id}">
		<div 	class="span-3 menu-item-selected border"
				onmouseover="this.className='span-3 menu-item-over border'"
				onmouseout="this.className='span-3 menu-item-selected border'"
				id="<c:out value="${menuItem.id}"/>"
				onclick="window.location.href='<%=request.getContextPath()%>/menu/action.do?id=<c:out value="${menuItem.id}"/>'">
				<c:out value="${menuItem.name}"/>
		</div>
	</c:when>
	<c:otherwise>
		<div 	class="span-3 menu-item border"
				onmouseover="this.className='span-3 menu-item-over border'"
				onmouseout="this.className='span-3 menu-item border'"
				id="<c:out value="${menuItem.id}"/>"
				onclick="window.location.href='<%=request.getContextPath()%>/menu/action.do?id=<c:out value="${menuItem.id}"/>'">
				<c:out value="${menuItem.name}"/>
		</div>
	</c:otherwise>
</c:choose>
</c:forEach>
<div class="span-1 last">&nbsp;</div>
</div>